home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / unix / lnxfaq.zip / PART2.FAQ < prev   
Text File  |  1994-06-17  |  44KB  |  994 lines

  1. Archive-Name: linux/faq/part2
  2. Last-Modified: 16 Jun 1994
  3.  
  4. (Continued from part 1, where you'll find the introduction and
  5.  table of contents.)
  6. ===============================================================================
  7.  
  8. Section 6.  Miscellaneous questions and problems
  9.  
  10.  Q6.1        How many people use Linux ?
  11.  Q6.2        How can I get scrollback on text VC's ?
  12.  Q6.3        Setuid scripts don't seem to work.
  13.  Q6.4        Free memory as reported by free keeps shrinking.
  14.  Q6.5        What is a BogoMip ?
  15.  Q6.6        How do I set the timezone ?
  16.  Q6.7        What version of Linux and what machine name am I using ?
  17.  Q6.8        When I add more memory it slows to a crawl.
  18.  Q6.9        Some programs (e.g. xdm) won't let me log in.
  19.  Q6.10       Some programs let me log in with no password.
  20.  Q6.11       My machine runs very slowly when I run GCC / X / ...
  21.  Q6.12       I can only log in as root.
  22.  Q6.13       How can I produce core files ?
  23.  Q6.14       How do I stop producing core files ?
  24.  Q6.15       My keyboard goes all funny after I switch VC's.
  25.  Q6.16       My screen is all full of weird characters instead of letters.
  26.  Q6.17       What is a .gz file ? And a .tgz ? And ... ?
  27.  Q6.18       I have screwed up my system and can't log in to fix it.
  28.  Q6.19       How do I upgrade/recompile my kernel ?
  29.  Q6.20       Can I have more than 3 serial ports by sharing interrupts ?
  30.  Q6.21       Emacs just dumps core.
  31.  Q6.22       How do I make a bootable floppy ?
  32.  Q6.23       How do I remap my keyboard to UK, French, etc. ?
  33.  Q6.24       I've discovered a huge security hole in rm !
  34.  Q6.25       lpr and lpd aren't working.
  35.  Q6.26       What does VFS stand for ?
  36.  
  37. -------------------------------------------------------------------------------
  38.  
  39. Question 6.1.  How many people use Linux ?
  40.  
  41. Linux is freely available, and no one is required to register their copies
  42. with any central authority, so it is difficult to know.  Several
  43. businesses are now surviving solely on selling and supporting Linux, and
  44. very few Linux users use those businesses, relatively speaking.  The Linux
  45. newsgroups are some of the most heavily read on the Net, so the number is
  46. likely in the hundreds of thousands, but firm numbers are hard to come by.
  47.  
  48. However, one brave soul, Harald T. Alvestrand
  49. <Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if you
  50. use Linux, you send a message to linux-counter@uninett.no with one of the
  51. following subjects: `I use Linux at home', `I use Linux at work', or `I
  52. use Linux at home and at work'.  He will also accept `third-party'
  53. registrations - ask him for details.  He posts his counts to
  54. comp.os.linux.misc.
  55.  
  56. -------------------------------------------------------------------------------
  57.  
  58. Question 6.2.  How can I get scrollback on text VC's ?
  59.  
  60. With the default US keymap you can use Shift with the PageUp and PageDown
  61. keys (NB these must be the grey ones, not the ones on the numeric keypad
  62. !).  With other keymaps check the maps in /usr/lib/keytables; you can
  63. remap the scroll up and down keys to be whatever you like --- for example,
  64. in order to remap them to keys that exist on an 84-key AT keyboard.
  65.  
  66. You can't increase the amount of scrollback, because of the way it is
  67. implemented using the video memory to store the scrollback text, though
  68. you may be able to get more scrollback in each VC by reducing the total
  69. number of VC's --- see <linux/tty.h>.
  70.  
  71. -------------------------------------------------------------------------------
  72.  
  73. Question 6.3.  Setuid scripts don't seem to work.
  74.  
  75. That's right.  This feature has been specifically disabled in the Linux
  76. kernel because setuid scripts are almost always a security hole.  If you
  77. want to know why read the FAQ for comp.unix.questions.
  78.  
  79. -------------------------------------------------------------------------------
  80.  
  81. Question 6.4.  Free memory as reported by free keeps shrinking.
  82.  
  83. The `free' figure printed by free doesn't include memory used as a disk
  84. buffer cache - shown in the `buffers' column.  If you want to know how
  85. much memory is really free add the `buffers' amount to `free'.
  86.  
  87. The disk buffer cache tends to grow soon after starting Linux up, as you
  88. load more programs and use more files and the contents get cached.  It
  89. will stabilise after a while.
  90.  
  91. -------------------------------------------------------------------------------
  92.  
  93. Question 6.5.  What is a BogoMip ?
  94.  
  95. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  96. who you listen to) Millions of Instructions per Second, or Meaningless
  97. Indication of Processor Speed.
  98.  
  99. The number printed at boot-time is the result of a kernel timing
  100. calibration, used for very short delay loops by some device drivers.
  101.  
  102. As a very rough guide the BogoMips will be approximately:
  103.           386SX               clock * 0.125 + 0.2
  104.           386DX               clock * 0.20 - 0.6
  105.           486SX/DX            clock * 0.49 + 0.25
  106.           486DX2              clock * 0.50 + 0.37
  107.           Pentium             24.0
  108.  
  109. If the number you're seeing is wildly lower than this you may have the
  110. Turbo button or CPU speed set incorrectly, or have some kind of caching
  111. problem [as described in Q6.8 `When I add more memory it slows to a
  112. crawl.'.]
  113.  
  114. For values people have seen with other, rarer, chips, see the Bogomips
  115. Information Sheet, published by Wim van Dorst <baron@clifton.hobby.nl> in
  116. comp.os.linux.announce.
  117.  
  118. -------------------------------------------------------------------------------
  119.  
  120. Question 6.6.  How do I set the timezone ?
  121.  
  122. Change directory to /usr/lib/zoneinfo; get the timezone package if you
  123. don't have this directory.  The source can be found on sunsite.unc.edu in
  124. /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  125.  
  126. Then make a symbolic link named localtime pointing to one of the files in
  127. this directory (or a subdirectory), and one called posixrules pointing to
  128. localtime.  For example:
  129.    ln -sf US/Mountain localtime
  130.    ln -sf localtime posixrules
  131. This change will take effect immediately - try date.
  132.  
  133. Don't try to use the TZ variable - leave it unset.
  134.  
  135. If you have a system which complies with a very recent version of the
  136. Linux Filesystem Standard you will find that /usr/lib/zoneinfo/localtime
  137. is a symbolic link to /etc/localtime.  In this case, simply copy the
  138. appropriate file from /usr/lib/zoneinfo to /etc/localtime and leave the
  139. link alone.  For example:
  140.    cp /usr/lib/zoneinfo/US/Mountain /etc/localtime
  141.  
  142. -------------------------------------------------------------------------------
  143.  
  144. Question 6.7.  What version of Linux and what machine name am I using ?
  145.  
  146. Type:
  147.    uname -a
  148.  
  149. -------------------------------------------------------------------------------
  150.  
  151. Question 6.8.  When I add more memory it slows to a crawl.
  152.  
  153. This is quite a common symptom of a failure to cache the additional
  154. memory.  The exact problem depends on your motherboard.
  155.  
  156. Sometimes you have to enable caching of certain regions in your BIOS
  157. setup.  Look in the CMOS setup and see if there is an option to cache the
  158. new memory area which is currently switched off.  This is apparently most
  159. common on a 486.
  160.  
  161. Sometimes the RAMs have to be in certain sockets to be cached.
  162.  
  163. Sometimes you have to set jumpers to enable the caching.
  164.  
  165. Some motherboards don't cache all the RAM if you have more RAM per amount
  166. of cache than they expect.  Usually a full 256K cache will solve this
  167. problem.
  168.  
  169. If in doubt, check your motherboard manual.  If you still can't fix it
  170. because the documentation is inadequate you might like to post a message
  171. giving *all* the details - make, model number, date code, etc. so that
  172. other Linux users can avoid it.
  173.  
  174. -------------------------------------------------------------------------------
  175.  
  176. Question 6.9.  Some programs (e.g. xdm) won't let me log in.
  177.  
  178. You are probably using non-shadow-password programs but are using shadow
  179. passwords.
  180.  
  181. If so, you have to get or compile a shadow password version of the
  182. program(s) in question.  The shadow password suite can be found in
  183. (amongst other places):
  184.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  185. This is the source code; you will probably find the binaries in
  186. .../linux/binaries/usr.bin.
  187.  
  188. -------------------------------------------------------------------------------
  189.  
  190. Question 6.10.  Some programs let me log in with no password.
  191.  
  192. You probably have the same problem as in Q6.9 `Some programs (e.g. xdm)
  193. won't let me log in.', with an added wrinkle:
  194.  
  195. If you are using shadow passords you should put an asterisk in the
  196. password field of /etc/passwd for each account, so that if a program
  197. doesn't know about the shadow passwords it won't think it's a passwordless
  198. account and let anyone in.
  199.  
  200. -------------------------------------------------------------------------------
  201.  
  202. Question 6.11.  My machine runs very slowly when I run GCC / X / ...
  203.  
  204. You may not have any swap enabled.  You need to enable swapping to allow
  205. Linux to page out bits of data programs aren't using at the moment to disk
  206. to make more room for other programs and data.  If you don't Linux has to
  207. keep data in memory and throw away in-memory copies of programs (which are
  208. paged straight from the filesystem) and so less and less program is in
  209. memory and everything runs very slowly.
  210.  
  211. See the Installation HOWTO and the Installation and Getting Started Guide
  212. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  213. of how to set up a swap partition or swapfile; see also Q4.5 `My swap area
  214. isn't working.'.
  215.  
  216. Alternatively you may have too little real memory.  If you have less RAM
  217. than all the programs you're running at once use Linux will use your hard
  218. disk instead and thrash horribly.  The solution in this case is to not run
  219. so many things at once or to buy more memory.  You can also reclaim some
  220. memory by compiling and using a kernel with less options configured.  See
  221. Q6.19 `How do I upgrade/recompile my kernel ?'.
  222.  
  223. You can tell how much memory and/or swap you're using by using the free
  224. command, or by typing
  225.     cat /proc/meminfo
  226.  
  227. If your kernel is configured with a ramdisk this is probably wasted space
  228. and will cause things to go slowly.  Use LILO or rdev to tell the kernel
  229. not to allocate a ramdisk (see the LILO documentation or type man rdev).
  230.  
  231. -------------------------------------------------------------------------------
  232.  
  233. Question 6.12.  I can only log in as root.
  234.  
  235. You probably have some permission problems, or you have a file
  236. /etc/nologin.
  237.  
  238. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.
  239.  
  240. Otherwise check the permissions on your shell, and any filenames which
  241. appear in error messages, and also the directories containing these files
  242. all the way back up the tree to the root directory.
  243.  
  244. -------------------------------------------------------------------------------
  245.  
  246. Question 6.13.  How can I produce core files ?
  247.  
  248. Since 0.99pl14 Linux has had corefiles turned off by default for all
  249. processes.  You can turn them on by using the ulimit command in bash, or
  250. the limit command in tcsh.  See the manpages or Q6.14 `How do I stop
  251. producing core files ?' for more details.
  252.  
  253. After executing that command all programs run from that shell (directly or
  254. indirectly) will be able to dump core.
  255.  
  256. If you wish to enable coredumping for all processes by default you can
  257. change the default setting in <linux/sched.h> - see the definition of
  258. INIT_TASK.
  259.  
  260. -------------------------------------------------------------------------------
  261.  
  262. Question 6.14.  How do I stop producing core files ?
  263.  
  264. If you use bash put
  265.    ulimit -c 0
  266. in your .shrc or .bashrc; if you use tcsh put
  267.    limit coredumpsize 0
  268. in your .cshrc.  For other shells check the shell's manpage.
  269.  
  270. This state of affairs is the default with newer kernels.
  271.  
  272. -------------------------------------------------------------------------------
  273.  
  274. Question 6.15.  My keyboard goes all funny after I switch VC's.
  275.  
  276. This is a bug in kernel versions before 0.99pl14-alpha-n.  Sometimes Linux
  277. loses track of what modifier keys (Shift, Alt, Control etc.) are pressed
  278. or not, and believes that one or more are pressed when they are not.  The
  279. solution is to press and release each of the modifier keys (without
  280. pressing any other keys) --- this will ensure that Linux knows what state
  281. the keyboard is actually in.
  282.  
  283. This problem often occurs when switching out of X windows; it can
  284. sometimes be avoided by releasing Ctrl and Alt very quickly after pressing
  285. the F-key of the VC you are switching to.
  286.  
  287. -------------------------------------------------------------------------------
  288.  
  289. Question 6.16.  My screen is all full of weird characters instead of letters.
  290.  
  291. You probably sent some binary data to your screen by mistake.  Type echo
  292. ^V^[c (that's e c h o space control-V escape c return) to fix it.  Many
  293. Linux distributions have a command reset that does just this.
  294.  
  295. -------------------------------------------------------------------------------
  296.  
  297. Question 6.17.  What is a .gz file ? And a .tgz ? And ... ?
  298.  
  299. .gz (and .z) files have been compressed using GNU gzip.  You have to get a
  300. copy of gunzip (included in the gzip distribution and with most Linux
  301. installations) to unpack the file.
  302.  
  303. .taz and .tz are tarfiles (made with Unix tar) compressed using standard
  304. Unix compress.
  305.  
  306. .tgz (or .tpz) is a tarfile compressed with gzip.
  307.  
  308. The file command can often tell you what a file is.
  309.  
  310. If you find that gzip complains when you try to uncompress a gzipped file
  311. you probably downloaded it in ASCII mode by mistake.  You must download
  312. most things in binary mode - remember to type binary as a command in FTP
  313. before using get to get the file.
  314.  
  315. -------------------------------------------------------------------------------
  316.  
  317. Question 6.18.  I have screwed up my system and can't log in to fix it.
  318.  
  319. Reboot from an emergency floppy, for example the Slackware a1 disk or the
  320. MCC installation boot floppy.  Get to a shell prompt and mount your hard
  321. disk with something like
  322.    mount -t ext2 /dev/hda1 /mnt
  323.  
  324. Then your filesystem is available under the directory /mnt and you can fix
  325. the problem.  Remember to unmount your hard disk before rebooting (cd back
  326. down to / first or it will say it's busy).
  327.  
  328. -------------------------------------------------------------------------------
  329.  
  330. Question 6.19.  How do I upgrade/recompile my kernel ?
  331.  
  332. See the README which comes with the kernel release, in
  333.         ftp.funet.fi:/pub/OS/Linux/PEOPLE/Linus
  334. and mirrors thereof.  Try to get it from a closer site if possible;
  335. ftp.funet.fi is a very busy site and therefore slow -- see Q2.4 `How do I
  336. install Linux ?'.  You may already have a version of the kernel source
  337. code installed on your system, but if you got it as part of a standard
  338. distribution it is likely to be somewhat out of date (this is not a
  339. problem if you only want a custom-configured kernel, but it probably is if
  340. you need to upgrade.)
  341.  
  342. Remember that to make the new kernel boot you must run LILO after copying
  343. the kernel into your root partition -- the Makefile in recent kernels has
  344. a special zlilo target for this; try make zlilo.
  345.  
  346. -------------------------------------------------------------------------------
  347.  
  348. Question 6.20.  Can I have more than 3 serial ports by sharing interrupts ?
  349.  
  350. Not without some trickery.  This is a limitation of the ISA bus
  351. architecture.
  352.  
  353. See the Serial HOWTO for information about how to work around this
  354. problem.
  355.  
  356. -------------------------------------------------------------------------------
  357.  
  358. Question 6.21.  Emacs just dumps core.
  359.  
  360. You probably have the X version of Emacs that comes with SLS.  It doesn't
  361. work without the X libraries.  The solution is to install X Windows or get
  362. a newer Emacs binary without any X Windows support.
  363.  
  364. -------------------------------------------------------------------------------
  365.  
  366. Question 6.22.  How do I make a bootable floppy ?
  367.  
  368. Make a filesystem on it with bin, etc and lib directories -- everything
  369. you need.  Install a kernel on it and arrange to have LILO boot it from
  370. the floppy (see the LILO documentation, in lilo.u.*.ps).
  371.  
  372. If you build the kernel (or tell LILO to tell the kernel) to have a
  373. ramdisk the same size as the floppy the ramdisk will be loaded at
  374. boot-time and mounted as root in place of the floppy.
  375.  
  376. -------------------------------------------------------------------------------
  377.  
  378. Question 6.23.  How do I remap my keyboard to UK, French, etc. ?
  379.  
  380. For recent kernels, get kbd*.tar.gz from the same place as you got the
  381. kernel source.  Make sure you get the appropriate version; you have to use
  382. the right keyboard-mapping package to go with your kernel version.  The
  383. latest at the time of writing is kbd-0.85.tar.gz, which works with at
  384. kernel versions from 1.0.
  385.  
  386. For older kernels you have to edit the top-level kernel Makefile, in
  387. /usr/src/linux.
  388.  
  389. You may find more helpful information in the Keyboard FAQ, on ftp.funet.fi
  390. in /pub/OS/Linux/doc/kbd.FAQ.
  391.  
  392. -------------------------------------------------------------------------------
  393.  
  394. Question 6.24.  I've discovered a huge security hole in rm !
  395.  
  396. No you haven't.  You are obviously new to Unix and need to read a good
  397. book on it to find out how things work.  Clue: ability to delete files
  398. under Unix depends on permission to write the directory they are in.
  399.  
  400. -------------------------------------------------------------------------------
  401.  
  402. Question 6.25.  lpr and lpd aren't working.
  403.  
  404. Check the Printing HOWTO [Q2.1 `Where can I get the HOWTOs and other
  405. documentation ?'].
  406.  
  407. -------------------------------------------------------------------------------
  408.  
  409. Question 6.26.  What does VFS stand for ?
  410.  
  411. Virtual File System.  It's the abstraction layer between the user and real
  412. filesystems like ext2, minix and msdos.  Amongst other things, its job is
  413. to flush the read buffer when it detects a disk change on the floppy disk
  414. drive:
  415.    VFS: Disk change detected on device 2/0
  416.  
  417. This would seem like an appropriate entry for a glossary - Matt, are there
  418. any plans to produce such a thing ?
  419.  
  420. ===============================================================================
  421.  
  422. Section 7.  Frequently Encountered Error messages
  423.  
  424.  Q7.1        fdisk says Partition X has different phsyical/logical ...
  425.  Q7.2        fdisk: Partition 1 does not start on cylinder boundary
  426.  Q7.3        lp1 on fire
  427.  Q7.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  428.  Q7.5        ld: unrecognized option '-m486'
  429.  Q7.6        GCC says Internal compiler error
  430.  Q7.7        make says Error 139
  431.  Q7.8        df says Cannot read table of mounted filesystems
  432.  Q7.9        shell-init: permission denied when I log in.
  433.  Q7.10       No utmp entry.  You must exec ... when I log in.
  434.  Q7.11       EXT2-fs: warning: mounting unchecked filesystem
  435.  Q7.12       EXT2-fs warning: maximal count reached
  436.  Q7.13       EXT2-fs warning: checktime reached
  437.  Q7.14       fdisk says cannot use nnn sectors of this partition
  438.  Q7.15       fdisk says partition n has an odd number of sectors
  439.  Q7.16       mtools says cannot initialise drive XYZ
  440.  Q7.17       Warning: obsolete routing request made.
  441.  
  442. -------------------------------------------------------------------------------
  443.  
  444. Question 7.1.  fdisk says Partition X has different phsyical/logical ...
  445.  
  446. If the partition number (X, above) is 1 this is the same problem as Q7.2
  447. `fdisk: Partition 1 does not start on cylinder boundary'.
  448.  
  449. If the partition begins or ends on a cylinder numbered beyond 1024, this
  450. is because standard DOS disk geometry information format in the partition
  451. table can't cope with cylinder numbers with more than 10 bits.
  452.  
  453. This will cause DOS to be unable to access the partition correctly, and
  454. will make booting a Linux kernel from that partition using LILO
  455. problematic at best.
  456.  
  457. You can still use the partition for Linux or other operating systems that
  458. use linear addressing (ie, number the disk blocks sequentially without
  459. looking at heads, tracks and sectors).
  460.  
  461. I'd recommend creating at least one Linux partition entirely under the
  462. 1024-cylinder limit and booting off that; the other partitions will then
  463. be OK.
  464.  
  465. -------------------------------------------------------------------------------
  466.  
  467. Question 7.2.  fdisk: Partition 1 does not start on cylinder boundary
  468.  
  469. The version of fdisk that comes with many Linux systems creates partitions
  470. that fail its own validity checking.  Unfortunately if you've already
  471. installed your system there's not much you can do about this, apart from
  472. copying the data off the partition, deleting and remaking it, and copying
  473. the data back.
  474.  
  475. If you are creating a new partition 1 that starts in the first cylinder,
  476. you can do the following to get a partition that fdisk likes.
  477.  
  478. 1. Create partition 1 in the normal way.  A p listing will produce the
  479. mismatch complaint.
  480.  
  481. 2. Type u to set sector mode and do p again.  Copy down the number from
  482. the "End" column.
  483.  
  484. 3. Delete partition 1.
  485.  
  486. 4. While still in sector mode recreate partition 1.  Set the first sector
  487. to match the number of sectors per track.  This is the sector number in
  488. the first line of the p output.  Set the last sector to the value noted in
  489. 2. above.
  490.  
  491. 5. Type u to reset cylinder mode and continue with other partitions.
  492.  
  493. -------------------------------------------------------------------------------
  494.  
  495. Question 7.3.  lp1 on fire
  496.  
  497. This is a joke/traditional error message indicating that some sort of
  498. error is being reported by your printer, but it isn't offline or out of
  499. paper.  It may be that you have some kind of I/O or IRQ conflict - check
  500. your cards' settings.  Hopefully it isn't really on fire ...
  501.  
  502. -------------------------------------------------------------------------------
  503.  
  504. Question 7.4.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  505.  
  506. You are trying to use the old network configuration utilities; the new
  507. ones can be found on tsx-11.mit.edu in
  508. /pub/linux/packages/net/net-2/binaries.
  509.  
  510. Note that they cannot be used just like the old-style programs; see the
  511. NET-2 HOWTO for instructions on how to set up networking correctly.
  512.  
  513. -------------------------------------------------------------------------------
  514.  
  515. Question 7.5.  ld: unrecognized option '-m486'
  516.  
  517. You have an old version of ld.  Install a newer binutils package -- this
  518. will contain an updated ld:
  519.    tsx-11.mit.edu:/pub/linux/packages/GCC/binutils.tar.z
  520.  
  521. -------------------------------------------------------------------------------
  522.  
  523. Question 7.6.  GCC says Internal compiler error
  524.  
  525. If the fault is repeatable (ie, it always happens at the same place in the
  526. same file) you have discovered a bug in GCC.  See the GCC Info
  527. documentation (type Control-h i in Emacs, and select GCC from the menu)
  528. for details on how to report this -- make sure you have the latest version
  529. though.
  530.  
  531. Note that this is probably not a Linux-specific problem; unless you were
  532. compiling a program many other Linux users also compile you should not
  533. post your bug report to any of the comp.os.linux groups.
  534.  
  535. If the problem is not repeatable you are very probably experiencing memory
  536. corruption --- see Q7.7 `make says Error 139'.
  537.  
  538. -------------------------------------------------------------------------------
  539.  
  540. Question 7.7.  make says Error 139
  541.  
  542. Your compiler driver (gcc) dumped core.  You probably have a corrupted,
  543. buggy or old version of GCC --- get the latest release.  Alternatively you
  544. may be running out of swap space --- see Q6.11 `My machine runs very
  545. slowly when I run GCC / X / ...' for more info.
  546.  
  547. If this doesn't fix the problem you are probably having problems with
  548. memory or disk corruption.  Check that the clock rate, wait states and
  549. refresh timing for your SIMMs are correct.  If so you may have some dodgy
  550. SIMMs or a faulty motherboard or hard disk or controller.
  551.  
  552. Linux, like any Unix, is a very good memory tester --- much better than
  553. DOS-based memory test programs.
  554.  
  555. Reportedly some clone x87 maths coprocessors can cause problems; try
  556. compiling a kernel with maths emulation [Q6.19 `How do I upgrade/recompile
  557. my kernel ?']; you may need to use the no387 kernel command line flag on
  558. the LILO prompt to force the kernel to use it, or it may be able to work
  559. and still use the 387, with the maths emulation compiled in but mainly
  560. unused.
  561.  
  562. -------------------------------------------------------------------------------
  563.  
  564. Question 7.8.  df says Cannot read table of mounted filesystems
  565.  
  566. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  567. If you have a reasonably new version of mount, /etc/mtab should be emptied
  568. or deleted at boot time (in /etc/rc or /etc/rc.local), using something
  569. like
  570.    rm -f /etc/mtab*
  571.  
  572. Some versions of SLS have an entry for the root partition in /etc/mtab
  573. made in /etc/rc by using rdev.  This is incorrect -- the newer versions of
  574. mount do this automatically.
  575.  
  576. Other versions of SLS have a line in /etc/fstab that looks like:
  577.     /dev/sdb1   /root   ext2   defaults
  578. This is wrong.  /root should read simply /.
  579.  
  580. -------------------------------------------------------------------------------
  581.  
  582. Question 7.9.  shell-init: permission denied when I log in.
  583.  
  584. Your root directory and all the directories up to your home directory must
  585. be readable and executable by everybody.  See the manpage for chmod or a
  586. book on Unix for how to fix the problem.
  587.  
  588. -------------------------------------------------------------------------------
  589.  
  590. Question 7.10.  No utmp entry.  You must exec ... when I log in.
  591.  
  592. Your /etc/utmp is screwed up.  You should have
  593.    > /etc/utmp
  594. in your /etc/rc or /etc/rc.local.  See Q6.18 `I have screwed up my system
  595. and can't log in to fix it.' for how to be able to do this.
  596.  
  597. -------------------------------------------------------------------------------
  598.  
  599. Question 7.11.  EXT2-fs: warning: mounting unchecked filesystem
  600.  
  601. You need to run e2fsck (or fsck -t ext2 if you have the fsutils package)
  602. with the -a option to get it to clear the `dirty' flag, and then cleanly
  603. unmount the partition during each shutdown.
  604.  
  605. The easiest way to do this is to get the bootutils package, available on
  606. sunsite and tsx-11.  You have to make sure you have a recent umount
  607. command.
  608.  
  609. NB don't try to check a filesystem that's mounted read-write - this
  610. includes the root partition if you don't see
  611.    VFS: mounted root ... read-only
  612. at boot time.  You must arrange for to initially mount the root filesystem
  613. readonly, check it if necessary, and then remount it read-write.  Read the
  614. documentation that comes with bootutils to find out how to do this.
  615.  
  616. Note that you need to specify the -n option to mount to get it not to try
  617. to update /etc/mtab, since the root filesystem is still read-only and this
  618. will otherwise cause it to fail !
  619.  
  620. -------------------------------------------------------------------------------
  621.  
  622. Question 7.12.  EXT2-fs warning: maximal count reached
  623.  
  624. This message is issued by the kernel when it mounts a filesystem that's
  625. marked as clean, but whose `number of mounts since check' counter has
  626. reached the predifined value.  The solution is to get the latest version
  627. of the ext2fs utilities (e2fsprogs-0.4a.tar.gz at the time of writing)
  628. from the usual sites [Q2.5 `Where can I get Linux material by FTP ?'].
  629.  
  630. The maximal number of mounts value can be examined and changed using the
  631. tune2fs program from this package.
  632.  
  633. -------------------------------------------------------------------------------
  634.  
  635. Question 7.13.  EXT2-fs warning: checktime reached
  636.  
  637. Kernels from 1.0 onwards support checking a filesystem based on the
  638. elapsed time since the last check as well as by the number of mounts.  Get
  639. the latest version of the ext2fs utilities [see Q7.12 `EXT2-fs warning:
  640. maximal count reached'].
  641.  
  642. -------------------------------------------------------------------------------
  643.  
  644. Question 7.14.  fdisk says cannot use nnn sectors of this partition
  645.  
  646. Originally Linux only supported the Minix filesystem, which cannot use
  647. more than 64Mb per parition.  This limitation is not present in the more
  648. advanced filesystems now available, such as ext2fs (the 2nd version of the
  649. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  650.  
  651. If you intend to use ext2fs or xiafs you can ignore the message.
  652.  
  653. -------------------------------------------------------------------------------
  654.  
  655. Question 7.15.  fdisk says partition n has an odd number of sectors
  656.  
  657. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  658. 1K blocks.  If you have a partition with an odd number of sectors the last
  659. sector is wasted.  Ignore the message.
  660.  
  661. -------------------------------------------------------------------------------
  662.  
  663. Question 7.16.  mtools says cannot initialise drive XYZ
  664.  
  665. This means that mtools is having trouble accessing the drive.  This can be
  666. due to several things.
  667.  
  668. Often this is due to the permissions on floppy drive devices (/dev/fd0*
  669. and /dev/fd1*) being incorrect --- the user running mtools must have the
  670. appropriate access.  See the manpage for chmod for details.
  671.  
  672. Most versions of mtools distributed with Linux systems (not the standard
  673. GNU version) use the contents of a file /etc/mtools to discover which
  674. devices and densities to use, in place of having this information compiled
  675. into the binary.  Mistakes in this file often cause problems.  There is
  676. often no documentation about this --- distribution packagers please note
  677. that this is *evil*.
  678.  
  679. For the easiest way to access your DOS files (especially those on a hard
  680. disk partition) see Q3.2 `How do I access files on my DOS partition or
  681. floppy ?'.  Note - you should never use mtools to access files on an
  682. msdosfs mounted partition or disk !
  683.  
  684. -------------------------------------------------------------------------------
  685.  
  686. Question 7.17.  Warning: obsolete routing request made.
  687.  
  688. This is nothing to worry about; it just means that the version of route
  689. you have is a little out of date compared to the kernel.  You can make the
  690. message go away by getting a new version of route from the same place as
  691. the kernel source code [Q6.19 `How do I upgrade/recompile my kernel ?'].
  692.  
  693. ===============================================================================
  694.  
  695. Section 8.  The X Window System
  696.  
  697.  Q8.1        Does Linux support X Windows ?
  698.  Q8.2        Where can I get an Xconfig for my video card and monitor ?
  699.  Q8.3        xterm logins show up strangely in who, finger
  700.  Q8.4        I can't get X Windows to work right.
  701.  
  702. -------------------------------------------------------------------------------
  703.  
  704. Question 8.1.  Does Linux support X Windows ?
  705.  
  706. Yes.  Linux uses XFree86 2.1, which is a derivative of X11R5.  You need to
  707. have a video card which is supported by XFree86 2.1.  See the Linux
  708. XFree86 HOWTO for more details.
  709.  
  710. Note that XFree86 3.0 (as distributed with X11R6) should be considered
  711. beta; the XFree86 core team are planning for the inclusion of the
  712. production release of XFree86 3 with X11R6 contrib.
  713.  
  714. Some of the Linux releases -- MCC, for example -- don't come with X
  715. Windows already included; however you can easily download and install it
  716. from /pub/Linux/X11/Xfree86-2.1.1 on sunsite.unc.edu and its mirror sites.
  717. Read the XFree86 HOWTO for installation instructions.
  718.  
  719. Other releases -- Slackware, Debian, TAMU and SLS, for example -- come
  720. with X Windows already included
  721.  
  722. -------------------------------------------------------------------------------
  723.  
  724. Question 8.2.  Where can I get an Xconfig for my video card and monitor ?
  725.  
  726. See the Linux XFree86 HOWTO.
  727.  
  728. You'll need to put together your own Xconfig file, because it depends on
  729. the exact combination of video card and monitor you have.  It's not that
  730. hard to do -- read the instructions that came with XFree86, in
  731. /usr/X386/lib/X11/etc.  The file you probably most need to look at is
  732. README.Config.
  733.  
  734. Please don't post to comp.os.linux.help asking for an Xconfig.
  735.  
  736. -------------------------------------------------------------------------------
  737.  
  738. Question 8.3.  xterm logins show up strangely in who, finger
  739.  
  740. The xterm that comes with XFree86 2.0 and earlier doesn't correctly
  741. understand the format that Linux uses for the /etc/utmp file, where the
  742. system records who is logged in.  It therefore doesn't set all the
  743. information correctly.
  744.  
  745. I do not know whether XFree86 2.1 fixes this problem.
  746.  
  747. -------------------------------------------------------------------------------
  748.  
  749. Question 8.4.  I can't get X Windows to work right.
  750.  
  751. Read the XFree86 HOWTO - note the question and answer section.
  752.  
  753. Try reading to comp.windows.x.i386unix -- specifically read the the FAQ
  754. for that group.
  755.  
  756. Please don't post X Windows or XFree86 related questions to
  757. comp.os.linux.help unless they are Linux-specific.
  758.  
  759. ===============================================================================
  760.  
  761. Section 9.  How to get further assistance
  762.  
  763.  Q9.1        You still haven't answered my question !
  764.  Q9.2        What to put in a posting to comp.os.linux.help
  765.  
  766. -------------------------------------------------------------------------------
  767.  
  768. Question 9.1.  You still haven't answered my question !
  769.  
  770. Please read all of this answer before posting.  I know it's a bit long,
  771. but you may be about to make a fool of yourself in front of 50000 people
  772. and waste hundreds of hours of their time.  Don't you think it's worth it
  773. to spend some of your time reading and following these instructions ?
  774.  
  775. If you think an answer is incomplete or inaccurate, please mail Ian
  776. Jackson at <ijackson@nyx.cs.du.edu>.
  777.  
  778. Read the appropriate Linux Documentation Project books - see Q2.1 `Where
  779. can I get the HOWTOs and other documentation ?'.
  780.  
  781. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  782. for any of the other comp.unix.* groups that may be relevant.
  783.  
  784. Linux is a Unix clone, so almost everything you read there will apply to
  785. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  786. /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send you these
  787. files, for those who don't have FTP access).
  788.  
  789. Check the relevant HOWTO for the subject in question, if there is one, or
  790. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  791.  
  792. Try experimenting --- that's the best way to get to know Unix and Linux.
  793.  
  794. Read the documentation.  Check the manpages (type man man if you don't
  795. know about manpages.  Try man -k <subject> --- it often lists useful and
  796. relevant manpages.
  797.  
  798. Check the Info documentation (type C-h i, i.e. Control H followed by I in
  799. Emacs) --- NB this isn't just for Emacs; for example the GCC documentation
  800. lives here as well.
  801.  
  802. There will also often be a README file with a package giving installation
  803. and/or usage instructions.
  804.  
  805. Make sure that you don't have a corrupted or out-of-date copy of the
  806. program in question.  If possible, download it again and reinstall it ---
  807. perhaps you made a mistake the first time.
  808.  
  809. Read comp.os.linux.announce --- this often contains very important
  810. information for all Linux users.
  811.  
  812. X-Windows questions belong in comp.windows.x.i386unix, not in
  813. comp.os.linux.help.  But read the group first (including the FAQ), before
  814. you post !
  815.  
  816. Only if you have done all of these things and are still stuck should you
  817. post to comp.os.linux.help; alternatively you could send email to
  818. linux-support@sunsite.unc.edu.  Make sure you read the next question, Q9.2
  819. `What to put in a posting to comp.os.linux.help', first.
  820.  
  821. -------------------------------------------------------------------------------
  822.  
  823. Question 9.2.  What to put in a posting to comp.os.linux.help
  824.  
  825. Please read carefully the following advice about how to write your
  826. posting.  Taking heed of it will greatly increase the chances that an
  827. expert and/or fellow user reading your posting will have enough
  828. information and motivation to reply.
  829.  
  830. Make sure you give full details of the problem, including
  831.  
  832. * What program, exactly, you are having problems with.  Include the
  833.   version number if known and say where you got it.  Many standard
  834.   commands tell you their version number if you give them a --version
  835.   option.
  836.  
  837. * Which Linux release you're using (MCC, Slackware, whatever) and what
  838.   version of that release.
  839.  
  840. * The *exact* and *complete* text of any error messages printed.
  841.  
  842. * Exactly what behaviour you were expecting, and exactly what behaviour
  843.   you observed.  A transcript of an example session is a good way of
  844.   showing this.
  845.  
  846. * The contents of any configuration files used by the program in question
  847.   and any related programs.
  848.  
  849. * What version of the kernel and of the shared libraries you are using.
  850.   The kernel version can be found by typing uname -a, and the shared
  851.   library version by typing ls -l /lib/libc.so.4.
  852.  
  853. * Details of what hardware you're running on, if it seems appropriate.
  854.  
  855. You are in little danger of making your posting too long unless you
  856. include large chunks of source code or uuencoded files, so err on the side
  857. of giving too much information.
  858.  
  859. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  860. `Linux', `help' or `question' in it --- we already knew that ! Save the
  861. space for the name of the program, a fragment of the error message,
  862. summary of the unusual behaviour, etc.
  863.  
  864. If you are reporting an `unable to handle kernel paging request' message,
  865. follow the instructions in the Linux kernel sources README for turning the
  866. numbers into something more meaningful.  If you don't do this noone who
  867. reads your post will be able to do it for you, as the mapping from numbers
  868. to function names varies from one kernel to another.
  869.  
  870. Put a summary paragraph at the top of your posting.
  871.  
  872. At the bottom of your posting, ask for responses by email and say you'll
  873. post a summary.  Back this up by using Followup-To: poster.  Then, do
  874. actually post a summary in a few days or a week or so.  Don't just
  875. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  876. in your summary's Subject line is also a good idea.
  877.  
  878. Make sure your posting doesn't have an inappropriate References header
  879. line.  This marks your article as part of the thread of the article
  880. referred to, which will often cause it to be junked by the readers with
  881. the rest of a boring thread.  If you use (t)rn you must make sure that
  882. when you post you use the lowercase f key; using uppercase F and deleting
  883. the quoted text doesn't do the same thing.  However Some versions of trn
  884. 2.x have a bug which produces this effect effen if you use f.  If this
  885. applies to your version you can edit out the References line in the
  886. message before you post, or just use plain Pnews to make a new posting.
  887. You should always read the header before posting anyway.
  888.  
  889. You might like to say in your posting that you've read this FAQ and the
  890. appropriate HOWTOs - this may make people less likely to skip your
  891. posting.
  892.  
  893. Remember that you should not post email sent to you personally without the
  894. sender's permission.
  895.  
  896. ===============================================================================
  897.  
  898. Section 10.  Administrative information and acknowledgements
  899.  
  900.  Q10.1       Feedback is invited
  901.  Q10.2       Formats in which this FAQ is available
  902.  Q10.3       Authorship and acknowledgements
  903.  Q10.4       Disclaimer and Copyright
  904.  
  905. -------------------------------------------------------------------------------
  906.  
  907. Question 10.1.  Feedback is invited
  908.  
  909. Please send me your comments on this FAQ.
  910.  
  911. I accept submissions for the FAQ in any format;  All contributions
  912. comments and corrections are gratefully received.
  913.  
  914. Please send them to <ijackson@nyx.cs.du.edu>.
  915.  
  916. -------------------------------------------------------------------------------
  917.  
  918. Question 10.2.  Formats in which this FAQ is available
  919.  
  920. This document is available as ASCII text, an Emacs Info document and
  921. PostScript.
  922.  
  923. The ASCII and Emacs Info versions and a Lout typesetter file (from which
  924. the PostScript is produced) are generated automatically by a Perl script
  925. which takes as input a file in the Bizarre Format with No Name.
  926.  
  927. The output files linux-faq.ascii, .info and .ps and a tarfile
  928. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  929. converter, are available in the docs directories of the major Linux FTP
  930. sites.
  931.  
  932. -------------------------------------------------------------------------------
  933.  
  934. Question 10.3.  Authorship and acknowledgements
  935.  
  936. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  937. assistance and comments from others too numerous to mention.  It was
  938. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  939.  
  940. Special thanks are due to Matt Welsh, who coordinates the HOWTOs and has
  941. written substantial portions of many of them, and to Marc-Michel Corsini.
  942. Thanks also to the contributors to the previous Linux FAQ, and to those
  943. sent me comments about this FAQ, and who answered questions on the
  944. newsgroup.
  945.  
  946. Last but not least, thanks to Linus Torvalds and the other contributors to
  947. Linux for giving us something to write about !
  948.  
  949. -------------------------------------------------------------------------------
  950.  
  951. Question 10.4.  Disclaimer and Copyright
  952.  
  953. Note that this document is provided as is.  The information in it is *not*
  954. warranted to be correct; you use it at your own risk.
  955.  
  956. Following recent reports on the faq-maintainers list I think it wise to
  957. change the copyright again:
  958.  
  959. Linux Frequently Asked Questions with Answers is Copyright 1994 by Ian
  960. Jackson <ijackson@nyx.cs.du.edu>.  It may be reproduced and distributed in
  961. whole or in part, subject to the following conditions:
  962.  
  963. * This copyright and permission notice and the paragraph in the
  964.   introduction about the frequency of updates must be retained on all
  965.   complete or partial copies.
  966.  
  967. * Any translation or derivative work must be approved by me before
  968.   distribution.  Email me - I'll probably be happy to oblige !
  969.  
  970. * If you wish to charge for non-machine-readable copies you need my
  971.   approval before distribution.  Note that this restriction is not
  972.   intended to prohibit charging for the service of printing or copying a
  973.   document supplied by your customer.
  974.  
  975. * If you distribute Linux Frequently Asked Questions with Answers in part,
  976.   instructions for obtaining the complete version must be included, and a
  977.   means for obtaining a complete version free or at cost price provided.
  978.  
  979. Exceptions to these rules may be granted, and I shall be happy to answer
  980. any questions about this copyright --- write to Ian Jackson, Churchill
  981. College, Cambridge, CB3 0DS, United Kingdom or email
  982. ijackson@nyx.cs.du.edu.  These restrictions are here to protect the
  983. contributors, not to restrict you as educators and learners.
  984.  
  985. Ian Jackson asserts the right to be identified as the author of this work,
  986. and claims the moral rights of paternity and integrity, in accordance with
  987. the Copyright, Designs and Patents Act, 1988.
  988.  
  989. ===============================================================================
  990. -- 
  991. Ian Jackson, at home    <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  992. PGP2 public key available.   Escoerea on IRC.   Urgent: <iwj@cam-orl.co.uk>
  993. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 575512
  994.